package com.lee.lease.web.admin.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lee.lease.model.entity.LeaseTerm;

import java.util.List;

/**
* @author liubo
* @description 针对表【lease_term(租期)】的数据库操作Mapper
* @createDate 2023-07-24 15:48:00
* @Entity com.atguigu.lease.model.LeaseTerm
*/
public interface LeaseTermMapper extends BaseMapper<LeaseTerm> {


    /**
     * 根据用户id查询租赁列表
     * @param id 房间id
     * @return
     */
    List<LeaseTerm> selectLeaseTermsByRoomId(Long id);

    /**
     * 根据租约id查询租期类型
     * @param id 租约id
     * @return
     */
    LeaseTerm selectByAgreementId(Long id);
}




